#!/bin/bash

echo 'milvus v2.5.13 拉取镜像开始'
docker pull crpi-33mr80vehc50lqh8.cn-chengdu.personal.cr.aliyuncs.com/yunxinai/milvus-minio:RELEASE.2023-03-20T20-16-18Z
docker pull crpi-33mr80vehc50lqh8.cn-chengdu.personal.cr.aliyuncs.com/yunxinai/milvus-etcd:v3.5.18
docker pull crpi-33mr80vehc50lqh8.cn-chengdu.personal.cr.aliyuncs.com/yunxinai/milvus-standalone:v2.5.13
docker pull crpi-33mr80vehc50lqh8.cn-chengdu.personal.cr.aliyuncs.com/yunxinai/milvus-attu:v2.5.11
echo 'milvus v2.5.13 拉取镜像完成'

sleep 2

echo 'milvus v2.5.13 镜像tag'
docker tag crpi-33mr80vehc50lqh8.cn-chengdu.personal.cr.aliyuncs.com/yunxinai/milvus-minio:RELEASE.2023-03-20T20-16-18Z minio/minio:RELEASE.2023-03-20T20-16-18Z
docker tag crpi-33mr80vehc50lqh8.cn-chengdu.personal.cr.aliyuncs.com/yunxinai/milvus-etcd:v3.5.18 quay.io/coreos/etcd:v3.5.18
docker tag crpi-33mr80vehc50lqh8.cn-chengdu.personal.cr.aliyuncs.com/yunxinai/milvus-standalone:v2.5.13 milvusdb/milvus:v2.5.13
docker tag crpi-33mr80vehc50lqh8.cn-chengdu.personal.cr.aliyuncs.com/yunxinai/milvus-attu:v2.5.11 zilliz/attu:v2.5.11
echo 'milvus v2.5.13 镜像tag完成'

echo 'milvus v2.5.13 删除镜像'
docker rmi crpi-33mr80vehc50lqh8.cn-chengdu.personal.cr.aliyuncs.com/yunxinai/milvus-minio:RELEASE.2023-03-20T20-16-18Z
docker rmi crpi-33mr80vehc50lqh8.cn-chengdu.personal.cr.aliyuncs.com/yunxinai/milvus-etcd:v3.5.18
docker rmi crpi-33mr80vehc50lqh8.cn-chengdu.personal.cr.aliyuncs.com/yunxinai/milvus-standalone:v2.5.13
docker rmi crpi-33mr80vehc50lqh8.cn-chengdu.personal.cr.aliyuncs.com/yunxinai/milvus-attu:v2.5.11
echo 'milvus v2.5.13 删除镜像完成'